﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001BF RID: 447
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeBuffInfo : IMessage<ChallengeBuffInfo>, IMessage, IEquatable<ChallengeBuffInfo>, IDeepCloneable<ChallengeBuffInfo>, IBufferMessage
	{
		// Token: 0x170005EF RID: 1519
		// (get) Token: 0x06001449 RID: 5193 RVA: 0x0003A30B File Offset: 0x0003850B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeBuffInfo> Parser
		{
			get
			{
				return ChallengeBuffInfo._parser;
			}
		}

		// Token: 0x170005F0 RID: 1520
		// (get) Token: 0x0600144A RID: 5194 RVA: 0x0003A312 File Offset: 0x00038512
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeBuffInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170005F1 RID: 1521
		// (get) Token: 0x0600144B RID: 5195 RVA: 0x0003A324 File Offset: 0x00038524
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeBuffInfo.Descriptor;
			}
		}

		// Token: 0x0600144C RID: 5196 RVA: 0x0003A32B File Offset: 0x0003852B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBuffInfo()
		{
		}

		// Token: 0x0600144D RID: 5197 RVA: 0x0003A334 File Offset: 0x00038534
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBuffInfo(ChallengeBuffInfo other) : this()
		{
			this.storyInfo_ = ((other.storyInfo_ != null) ? other.storyInfo_.Clone() : null);
			this.bossInfo_ = ((other.bossInfo_ != null) ? other.bossInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600144E RID: 5198 RVA: 0x0003A390 File Offset: 0x00038590
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBuffInfo Clone()
		{
			return new ChallengeBuffInfo(this);
		}

		// Token: 0x170005F2 RID: 1522
		// (get) Token: 0x0600144F RID: 5199 RVA: 0x0003A398 File Offset: 0x00038598
		// (set) Token: 0x06001450 RID: 5200 RVA: 0x0003A3A0 File Offset: 0x000385A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryBuffInfo StoryInfo
		{
			get
			{
				return this.storyInfo_;
			}
			set
			{
				this.storyInfo_ = value;
			}
		}

		// Token: 0x170005F3 RID: 1523
		// (get) Token: 0x06001451 RID: 5201 RVA: 0x0003A3A9 File Offset: 0x000385A9
		// (set) Token: 0x06001452 RID: 5202 RVA: 0x0003A3B1 File Offset: 0x000385B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossBuffInfo BossInfo
		{
			get
			{
				return this.bossInfo_;
			}
			set
			{
				this.bossInfo_ = value;
			}
		}

		// Token: 0x06001453 RID: 5203 RVA: 0x0003A3BA File Offset: 0x000385BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeBuffInfo);
		}

		// Token: 0x06001454 RID: 5204 RVA: 0x0003A3C8 File Offset: 0x000385C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeBuffInfo other)
		{
			return other != null && (other == this || (object.Equals(this.StoryInfo, other.StoryInfo) && object.Equals(this.BossInfo, other.BossInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001455 RID: 5205 RVA: 0x0003A41C File Offset: 0x0003861C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.storyInfo_ != null)
			{
				num ^= this.StoryInfo.GetHashCode();
			}
			if (this.bossInfo_ != null)
			{
				num ^= this.BossInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001456 RID: 5206 RVA: 0x0003A46E File Offset: 0x0003866E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001457 RID: 5207 RVA: 0x0003A476 File Offset: 0x00038676
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001458 RID: 5208 RVA: 0x0003A480 File Offset: 0x00038680
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.storyInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.StoryInfo);
			}
			if (this.bossInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.BossInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001459 RID: 5209 RVA: 0x0003A4DC File Offset: 0x000386DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.storyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StoryInfo);
			}
			if (this.bossInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BossInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600145A RID: 5210 RVA: 0x0003A534 File Offset: 0x00038734
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeBuffInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.storyInfo_ != null)
			{
				if (this.storyInfo_ == null)
				{
					this.StoryInfo = new ChallengeStoryBuffInfo();
				}
				this.StoryInfo.MergeFrom(other.StoryInfo);
			}
			if (other.bossInfo_ != null)
			{
				if (this.bossInfo_ == null)
				{
					this.BossInfo = new ChallengeBossBuffInfo();
				}
				this.BossInfo.MergeFrom(other.BossInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600145B RID: 5211 RVA: 0x0003A5B4 File Offset: 0x000387B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600145C RID: 5212 RVA: 0x0003A5C0 File Offset: 0x000387C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 82U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.bossInfo_ == null)
						{
							this.BossInfo = new ChallengeBossBuffInfo();
						}
						input.ReadMessage(this.BossInfo);
					}
				}
				else
				{
					if (this.storyInfo_ == null)
					{
						this.StoryInfo = new ChallengeStoryBuffInfo();
					}
					input.ReadMessage(this.StoryInfo);
				}
			}
		}

		// Token: 0x0400086C RID: 2156
		private static readonly MessageParser<ChallengeBuffInfo> _parser = new MessageParser<ChallengeBuffInfo>(() => new ChallengeBuffInfo());

		// Token: 0x0400086D RID: 2157
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400086E RID: 2158
		public const int StoryInfoFieldNumber = 1;

		// Token: 0x0400086F RID: 2159
		private ChallengeStoryBuffInfo storyInfo_;

		// Token: 0x04000870 RID: 2160
		public const int BossInfoFieldNumber = 10;

		// Token: 0x04000871 RID: 2161
		private ChallengeBossBuffInfo bossInfo_;
	}
}
